package top.shiyiri.shops.dao;

import top.shiyiri.shops.bean.TimeSexCount;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Aunean
 * @date 2021/12/27
 */
public interface TimeSexCountDao {

    @Select("select * from time_sex_count limit #{begin}, #{size}")
    List<TimeSexCount> timeSexCountByPage(@Param("begin") int begin, @Param("size") int size);

    @Select("select count(*) from time_sex_count")
    int totalLines();

    @Select("select * from time_sex_count")
    List<TimeSexCount> timeSexCount();
}
